package com.td.framework.kqxt.pbgl.service.impl;

import java.util.List;

import com.td.framework.common.BaseService;
import com.td.framework.kqxt.domain.KqBcsz;
import com.td.framework.kqxt.domain.KqGlpb;
import com.td.framework.kqxt.domain.KqGlpbxx;
import com.td.framework.kqxt.pbgl.dao.GlpbDao;
import com.td.framework.kqxt.pbgl.service.GlpbService;

public class GlpbServiceImpl extends BaseService implements GlpbService{
	private GlpbDao glpbDao;
	/**
	 * 用于页面上班次下拉列表接口
	 * @return list;
	 */
	public List getAllBc(){
		List<KqBcsz> list = this.getGlpbDao().getAllBc();		
		return list;
	}
	
	/**
	 * 添加时添加规律排班详细信息
	 */
	public boolean saveOrUpdateEntity(KqGlpb glpb,List<KqGlpbxx> glpbxxList){
		return this.glpbDao.saveOrUpdateEntity(glpb, glpbxxList);
	}
	
	/**
	 * 根据规律排版id得到具体的规律排班详细
	 * @param id 规律排班id
	 * @return list 规律排班详细集合
	 */
	public List<KqGlpbxx> getGlpbxxList(String id){
		return  this.glpbDao.getGlpbxxList(id);
	}
	
	public GlpbDao getGlpbDao() {
		return glpbDao;
	}
	public void setGlpbDao(GlpbDao glpbDao) {
		this.glpbDao = glpbDao;
	}
	
	
}
